using DotNetCommon.Expressions.Base;
using DotNetCommon.Extensions;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;
using System.Text;

namespace DotNetCommon.Expressions.Visit
{
    /// <summary>
    /// 示例: (int)floatx
    /// </summary>
    internal class ConvertVisit : UnaryVisit
    {
        protected override string GenerateFullMarkString(ExpressionNode node)
        {
            var unary = node.Expression as UnaryExpression;
            return $"({unary.Type.GetClassFullName()}){node.Children[0].FullMarkString}";
        }
    }
}
